package com.zzz.service.impl;

import com.aaa.entity.OCart;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzz.feign.AliPayFeign;
import com.zzz.feign.WxFeign;
import com.zzz.service.OCartService;
import com.zzz.mapper.OCartMapper;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86176
* @description 针对表【o_cart(购物车)】的数据库操作Service实现
* @createDate 2023-03-13 09:42:33
*/
@Service
@SuppressWarnings("all")
public class OCartServiceImpl extends ServiceImpl<OCartMapper, OCart>
    implements OCartService{

    @Autowired
    private OCartMapper ocartMapper;

    //添加到购物车
    @Override
    public Result addCart(OCart oCart) {
        ocartMapper.insert(oCart);
        return new Result(2000,"添加成功");
    }
}




